﻿using System;
using CommandLine;
using CommandLine.Text;

namespace ZDV.IdentityModel.IssuerNameRegistryUpdater
{
    class CommandLineOptions : CommandLineOptionsBase
    {
        [Option("m", "metadataLocation", Required = true, HelpText = "The location of the metadata.")]
        public String MetadataLocation { get; set; }

        [Option("b", "baseDirectory", HelpText = "A path, which will be used as base directory for all configuration files.")]
        public String BaseDirectory { get; set; }

        [OptionArray("c", "configFiles", Required = true, HelpText = "A list of config files separated by semi-colon (;). If you want to pass a serviceName use # (e.g. web.config#serviceName).")]
        public String[] ConfigurationFiles { get; set; }

        [HelpOption]
        public string GetUsage()
        {
            return HelpText.AutoBuild(this, current => HelpText.DefaultParsingErrorsHandler(this, current));
        }
    }
}
